const getters = {
    // getters中都是函数，并且只负责向外提供数据，不负责修改数据
    opened: state => state.app.opened,
    breadcrumb: state => state.app.breadcrumb,
    activePath: state => state.app.activePath,
    token: state => state.user.token,
    name: state => state.user.name,
    menu: state => state.user.menu
}
export default getters